#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Unit test for genome_file_reader module"""
__author__ = "Lei Chen <hide1713@gmail.com>"
import unittest
import sys
sys.path.append("../")
import src.genome_file_reader as reader

class TestFileReader(unittest.TestCase):
    """Test text file reader"""

    def test_read(self):
        """Test read txt file"""
        text_reader = reader.TextFileReader()
        text_record = []
        #text_record = text_reader.read_file("sample/test_data.txt")
        #self.assertEqual(len(text_record), 99, "record size"+\
        #                 str(len(text_record)))
        #self.assert_(text_record[0].cog_name == "COG1541")

if __name__ == '__main__':
    unittest.main()
